﻿/* 
	Snaps the Selected Subtool to 0 in the Y Axis
*/

/////////////////////////////////////////
// User Changeable Options ///////////////
/////////////////////////////////////////

/////////////////////////////////////////
/////////////////////////////////////////

[RoutineDef,SnapToGround,

	[VarSet,getSizeY,0]
	
	//Get Size Values of Current Subtool
	[VarSet,getSizeY,[IGet,Tool:Geometry:Y Size]]
	
	//Change position to snap to ground
	[ISet,Tool:Geometry:Y Position,NEG(getSizeY /2)]

]//Routine SnapToGround

[IButton,???,"Snaps the Selected Subtool to 0 in the Y Axis",
	[IShowActions,0]
	[IConfig,4.8]
	//[IFreeze,
		[RoutineCall,SnapToGround]
	//]
,,1,,,]